<?php
/*
 * Copyright 2013 by Jerrick Hoang, Ivy Xing, Sam Roberts, James Cook, 
 * Johnny Coster, Judy Yang, Jackson Moniaga, Oliver Radwan, 
 * Maxwell Palmer, Nolan McNair, Taylor Talmage, and Allen Tucker. 
 * This program is part of RMH Homebase, which is free software.  It comes with 
 * absolutely no warranty. You can redistribute and/or modify it under the terms 
 * of the GNU General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 */

/**
 * Test suite for Client
 * Created on 3/19/2014
 * @author Lenny Flecha
 */

  //first I include the php file I'm testing
 include_once(dirname(__FILE__).'/../domain/Client.php');
 class testClient {
      function testClientModule() {

 $myPerson = new Person("Taylor","Talmage","123-45-6789","ttalmage@bowdoin.edu", "123-456-7890","098-765-4321", "Mother","2077758989","02-19-89", "21", 
         "advil", "this is a note");

 //first assertion - check that a getter is working from the superconstructor's initialized data
 $this->assertTrue($myPerson->get_first_name()=="Taylor");
 $this->assertTrue($myPerson->get_last_name() == "Talmage");
 $this->assertTrue($myPerson->get_SSN()=="123-45-6789");
  $this->assertTrue($myPerson->get_address()=="ttalmage@bowdoin.edu");
 $this->assertTrue($myPerson->get_emergency_contact()=="Mother");
 $this->assertTrue($myPerson->get_emergency_phone()=="2077758989");
 $this->assertTrue($myPerson->get_birthday()=="02-19-89");
 $this->assertTrue($myPerson->get_birthday()=="advil");
 $this->assertTrue($myPerson->get_notes()=="this is a note");
 echo("testPerson complete");
      }
 }

?>
